<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::any('weChat','Wechat\BaseController@weChat');//配置微信响应接口

Route::group(['namespace' => 'Wechat','prefix'=>'v1'],function(){
    Route::group(['prefix' => 'user'], function (){
        Route::get('getCaptcha','UserController@getCaptcha');
        Route::post('login','UserController@login');
    });
});
